package com.springcloudserver.config;

import feign.Retryer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.TimeUnit;

/**
 * @description:
 * @author: chenzuolin
 * @time: 2021/3/17 22:02
 */
@Configuration
public class FeignServiceConfig {

    @Bean
    public Retryer feignRetryer() {
        return new Retryer.Default(100, TimeUnit.SECONDS.toMillis(1L), 5);
    }
}
